package com.dodock.banglapapers.server.generator;

import com.google.gson.JsonArray;
import com.google.gson.JsonObject;

public class DDNGetNewsPapersGenerator {

	public static String Generate(boolean notice) {

		JsonArray newspapers = new JsonArray();

		if (notice) {
			JsonObject androud_update_to_250 = new JsonObject();
			androud_update_to_250.addProperty("id", "androud_update_to_250");
			androud_update_to_250.addProperty("name",
					"Please immediately update this app.");
			androud_update_to_250.addProperty("ln", "en");
			androud_update_to_250.addProperty("logo",
					"newslogos/androud_update_to_250.png");
			newspapers.add(androud_update_to_250);
		}

		JsonObject prothomalo = new JsonObject();
		prothomalo.addProperty("id", "prothomalo");
		prothomalo.addProperty("name", "প্রথম আলো");
		prothomalo.addProperty("ln", "bn");
		prothomalo.addProperty("logo", "newslogos/prothomalo.png");
		newspapers.add(prothomalo);
		
		JsonObject kalerkantho = new JsonObject();
		kalerkantho.addProperty("id", "kalerkantho");
		kalerkantho.addProperty("name", "কালের কণ্ঠ");
		kalerkantho.addProperty("ln", "bn");
		kalerkantho.addProperty("logo", "newslogos/kalerkantho.png");
		newspapers.add(kalerkantho);
		
		JsonObject ittefaq = new JsonObject();
		ittefaq.addProperty("id", "ittefaq");
		ittefaq.addProperty("name", "ইত্তেফাক");
		ittefaq.addProperty("ln", "bn");
		ittefaq.addProperty("logo", "newslogos/ittefaq.jpg");
		newspapers.add(ittefaq);

		JsonObject manobzamin = new JsonObject();
		manobzamin.addProperty("id", "manobzamin");
		manobzamin.addProperty("name", "মানবজমিন");
		manobzamin.addProperty("ln", "bn");
		manobzamin.addProperty("logo", "newslogos/manobzamin.png");
		newspapers.add(manobzamin);

		JsonObject samakal = new JsonObject();
		samakal.addProperty("id", "samakal");
		samakal.addProperty("name", "সমকাল");
		samakal.addProperty("ln", "bn");
		samakal.addProperty("logo", "newslogos/samakal.png");
		newspapers.add(samakal);
		
		JsonObject banglaNews24 = new JsonObject();
		banglaNews24.addProperty("id", "banglanews24");
		banglaNews24.addProperty("name", "Banglanews24");// বাংলানিউজটোয়েন্টিফোর.কম
		banglaNews24.addProperty("ln", "bn");
		banglaNews24.addProperty("logo", "newslogos/bn24_logo_e.jpg");
		newspapers.add(banglaNews24);

		JsonObject bdnews24 = new JsonObject();
		bdnews24.addProperty("id", "bdnews24");
		bdnews24.addProperty("name", "bdnews24.com Bangla");
		bdnews24.addProperty("ln", "bn");
		bdnews24.addProperty("logo", "newslogos/bdnews24.png");
		newspapers.add(bdnews24);
		
		JsonObject poriborton = new JsonObject();
		poriborton.addProperty("id", "poriborton");
		poriborton.addProperty("name", "পরিবর্তন");
		poriborton.addProperty("ln", "bn");
		poriborton.addProperty("logo", "newslogos/poriborton.png");
		newspapers.add(poriborton);

		JsonObject bdnewsenglish24 = new JsonObject();
		bdnewsenglish24.addProperty("id", "bdnewsenglish24");
		bdnewsenglish24.addProperty("name", "bdnews24.com English");
		bdnewsenglish24.addProperty("ln", "en");
		bdnewsenglish24.addProperty("logo", "newslogos/bdnewsenglish24.png");
		newspapers.add(bdnewsenglish24);

		/*
		 * JsonObject bbcbangla = new JsonObject(); bbcbangla.addProperty("id",
		 * "bbcbangla"); bbcbangla.addProperty("name", " BBC বাংলা");
		 * bbcbangla.addProperty("ln", "bn"); bbcbangla.addProperty("logo",
		 * "newslogos/bbcbangla.png"); newspapers.add(bbcbangla);
		 */

		JsonObject dw = new JsonObject();
		dw.addProperty("id", "dw");
		dw.addProperty("name", "DW.DE");
		dw.addProperty("ln", "bn");
		dw.addProperty("logo", "newslogos/dw.png");
		newspapers.add(dw);



		/*
		 * JsonObject amardesh = new JsonObject(); amardesh.addProperty("id",
		 * "amardesh"); amardesh.addProperty("name", "আমার দেশ");
		 * amardesh.addProperty("ln", "bn"); amardesh.addProperty("logo",
		 * "newslogos/amardesh.png"); newspapers.add(amardesh);
		 */

		

		
		
		/*JsonObject inqilab = new JsonObject();
		inqilab.addProperty("id", "inqilab");
		inqilab.addProperty("name", "ইনকিলাব");
		inqilab.addProperty("ln", "bn");
		inqilab.addProperty("logo", "newslogos/inqilab.jpg");
		newspapers.add(inqilab);*/
		
		
		JsonObject bd_protidin = new JsonObject();
		bd_protidin.addProperty("id", "bd_protidin");
		bd_protidin.addProperty("name", "বাংলাদেশ প্রতিদিন");
		bd_protidin.addProperty("ln", "bn");
		bd_protidin.addProperty("logo", "newslogos/bd_protidin.bmp");
		newspapers.add(bd_protidin);
		return newspapers.toString();
	}
}
